import React, { useState, useMemo, HIGH_PRIORITY } from "react";
function App() {
  const [count, setCount] = useState(0);

  const getCount = useMemo(() => {
    console.log("getCount");
    return count + 100;
  }, [count]);
  return (
    <>
      <p>getCount::{getCount}</p>
      <p>count::{count}</p>
      <button onClick={() => setCount(count + 1, { lane: HIGH_PRIORITY })}>
        count+1
      </button>
    </>
  );
}
export default App;
